<template>
	<view class="content">
		<view class="info-item" @click="navigate('https://gz.yshj.minshengjiandu.com/xc')">
			<view class="title">甘肃省乡村振兴监督信息平台</view>
		</view>
		<view class="info-item" @click="navigate('https://gz.yshj.minshengjiandu.com/poverty')">
			<view class="title">一键报贫</view>
		</view>
		<view class="info-item" @click="navigate()">
			<view class="title">人居环境随手拍</view>
		</view>
		<view class="info-item" @click="navigate()">
			<view class="title">乡村振兴月通报</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			navigate(url) {
				if (!url) {
					this.showToast('该功能暂未开放！')
				} else {
					uni.navigateTo({
						url: '/pages/rural-revitalization/webview?url=' + url
					})
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 30rpx;

		.info-item {
			width: 100%;
			height: 200rpx;
			padding: 30rpx;
			background: url('https://gz.yshj.minshengjiandu.com/api/file/1.png') no-repeat center;
			background-size: 100% 100%;
			margin-bottom: 30rpx;
			display: flex;
			align-items: center;
			color: #fff;
			font-weight: bold;
			font-size: 30rpx;
		}

		.info-item:nth-child(2) {
			background: url('https://gz.yshj.minshengjiandu.com/api/file/2.png') no-repeat center;
			background-size: 100% 100%;
		}

		.info-item:nth-child(3) {
			background: url('https://gz.yshj.minshengjiandu.com/api/file/3.png') no-repeat center;
			background-size: 100% 100%;
		}

		.info-item:nth-child(4) {
			background: url('https://gz.yshj.minshengjiandu.com/api/file/4.png') no-repeat center;
			background-size: 100% 100%;
		}
	}
</style>